package net.itfenxiang.mybatisplus.trans.service.impl;

import cn.hutool.db.Page;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
import lombok.AllArgsConstructor;
import net.itfenxiang.mybatisplus.trans.convert.SysLogLoginConvert;
import net.itfenxiang.mybatisplus.trans.entity.SysLogLogin;
import net.itfenxiang.mybatisplus.trans.dao.SysLogLoginMapper;
import net.itfenxiang.mybatisplus.trans.service.ISysLogLoginService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import net.itfenxiang.mybatisplus.trans.utils.PageResult;
import net.itfenxiang.mybatisplus.trans.vo.SysLogLoginVO;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 登录日志 服务实现类
 * </p>
 *
 * @author author
 * @since 2024-04-29
 */
@Service
@AllArgsConstructor
public class SysLogLoginServiceImpl extends ServiceImpl<SysLogLoginMapper, SysLogLogin> implements ISysLogLoginService {


    @Override
    public PageResult<SysLogLoginVO> page() {
//        IPage<SysLogLogin> res = baseMapper.selectPage(null, Wrappers.lambdaQuery());
        return null;
    }

    @Override
    public List<SysLogLoginVO> listAll() {
        List<SysLogLogin> list = super.list();
        return SysLogLoginConvert.INSTANCE.convertList(list);
    }
}
